<div id="collegian-dialog" class="skin dialog-form-border ui-draggable page-shadow-set" style="width: 980px; height: auto; line-height: 2.4em; position: absolute; z-index: 60; padding: 6px; left: 333px; top: 92px; display: block;">
    <img title="ปิดหน้าต่าง" onclick="$('#collegian-dialog').fadeOut(200)" class="icon-close" src="http://localhost/assessment_project//assets/images/icons/close-img2.png">
    <div class="skin-title"> แก้ไขข้อมูลนักศึกษา </div>
    <div class="fieldset-form" style="width: 100%;border: none; font-size: 13px;height:auto">
        <form   name="frm_edit_dialog"  >
            <input  type="hidden"  name="coll_id"  value="<?=$_POST["coll_id"]?>"  />
                        <table style="margin: 0 auto"  align="center" class="formtable" width="97%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <th class="hlightight" align="right" valign="middle">&nbsp;ชื่อ-นามสกุล : </th>
                            <td align="left" valign="middle">&nbsp;
                              <input  name="txt_name"  type="text"   value="<?=$collegian_datay->collegian_name?>"  />
                            </td>
                            <th class="hlightight" align="right" valign="middle">&nbsp;รหัสนักศึกษา : </th>
                            <td align="left" valign="middle">&nbsp;
                              <input  name="txt_code"  type="text"  value="<?=$collegian_datay->collegian_code?>"  />
                            </td>
                          </tr>
                          <tr>
                            <th class="hlightight" align="right" valign="middle">&nbsp;ข้อมูลเพศ :</th>
                            <td align="left" valign="middle">&nbsp;
                                <select name="gender">
                                    <option <?=($collegian_datay->collegian_gender=="M")?"selected=\"selected\"":""?>  value="M">ชาย</option>
                                    <option <?=($collegian_datay->collegian_gender=="F")?"selected=\"selected\"":""?>  value="F">หญิง</option>
                                </select>
                            </td>
                            <th class="hlightight" align="right" valign="middle">&nbsp;วัน-เดือน-ปีเกิด:</th>
                            <td align="left" valign="middle">&nbsp;
                                <select name="day" >
                                    <?php for($i=1;$i<=31;$i++){ ?>
                                    <?  $day = (strlen($i) == 1)?"0".$i:$i; ?>
                                        <option value="<?=$day?>"><?=$day?></option>
                                    <?php } ?>
                                </select>
                                <select name="month" >
                                    <?php for($i=1;$i<=12;$i++){ ?>
                                        <option value="<?=$i?>"><?=getThaiMonth($i)?></option>
                                    <?php } ?>
                                </select>
                                <select name="year" >
                                    <?php $year = (date("Y")+543); ?>
                                    <?php for($i=($year );$i>=($year - 50);$i--){ ?>
                                        <option value="<?=($i-543)?>"><?=$i?></option>
                                    <?php } ?>
                                </select>
                            </td>
                          </tr>
                          <tr>
                            <th class="hlightight" align="right" valign="middle">&nbsp;โปรแกรมวิชา : </th>
                            <td align="left" valign="middle">&nbsp;
                                <select name="group_type"  style="width:255px !important">
                                    <?php foreach($majors->result_array() as $row){ ?>
                                         <option    <?=($collegian_datay->ref_major_id==$row["major_id"])?"selected=\"selected\"":""?>    value="<?=$row["major_id"]?>"><?=$row["major_title"]?> </option>
                                    <?php } ?>
                                </select>
                            </td>
                            <th class="hlightight" align="right" valign="middle">&nbsp;เบอร์โทรศัพท์ : </th>
                            <td align="left" valign="middle">&nbsp;
                              <input  name="phone_number"  type="text"  value="<?=$collegian_datay->collegian_phone?>"   />
                            </td>
                          </tr>
                          <tr>
                            <th class="hlightight" align="right" valign="middle">&nbsp; บันทึกข้อมูล :</th>
                            <td align="left" valign="middle">&nbsp;
                              <input onclick="_submit_update_collegian()"  class="button-x orange"  type="button" value="  บันทึกข้อมูล "   />
                              <input onclick="$('#collegian-dialog').fadeOut(200)"  class="button-x orange"  type="reset"    value="  ยกเลิก  "   />
                            </td>
                            <th class="hlightight" align="right" valign="middle">&nbsp; อีเมล์ : </th>
                            <td align="left" valign="middle">&nbsp; 
                              <input  name="email"  type="text"  value="<?=$collegian_datay->collegian_email?>"   />
                            </td>
                          </tr>
                        </table>
            </form>
        <br />
    </div> 
</div>